package android.gpstrac.controls;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Receives the booted intent from the system and starts the polling system.
 *
 * @author Nicolas Papin
 */
public class GPSTracBootStarter extends BroadcastReceiver
{
	
	/* (non-Javadoc)
	 * @see android.content.BroadcastReceiver#onReceive(android.content.Context, android.content.Intent)
	 */
	@Override
	public void onReceive(Context context, Intent intent)
	{
		Intent serviceIntent = new Intent(GPSTracUpdateService.class.getName());
		context.startService(serviceIntent);
	}
	
}
